package Basic.day04;

import Basic.day03.ColorEnum;

import java.util.Scanner;

public class SwitchDemo {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int colorNumber = scanner.nextInt();
        // 请在这里使用switch语句，实现根据colorNumber的值，输出对应的颜色
        ColorEnum color;
        switch (colorNumber){
            case 1:
                color = ColorEnum.RED;
                break;
            case 2:
                color = ColorEnum.GREEN;
                break;
            case 3:
                color = ColorEnum.BLUE;
                break;
            default:
                color = ColorEnum.UNKNOWN;
        }
        System.out.println("color = " + color);
        scanner.close();
    }
}

//enum Color{
//    RED, GREEN, BLUE, UNKNOWN;
//}
